package com.whub507.msgmanager.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;


//如果有多个runner需要指定一些顺序
@Order(1)
@Component
public class MyApplicationRunner implements ApplicationRunner {

    @Autowired
    SystemInitService systemInit;

    @Override
    public void run(ApplicationArguments args){
        systemInit.InitConfig();
    }
}